package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * @author nanyang
 */
public class TAbnormalDataVo implements Serializable {

    @Data
    @ApiModel("TAbnormalDataVo - Result")
    public static class Result{
        @ApiModelProperty("id")
        private Long id;
        @ApiModelProperty("姓名")
        private String name;
        @ApiModelProperty("性别")
        private Byte sex;
        @ApiModelProperty("住院号")
        private String hospitalizationNumber;
        @ApiModelProperty("档案号")
        private String fileNum;
        @ApiModelProperty("治疗类型(多选，值用逗号隔开)")
        private String treatmentType;
        @ApiModelProperty("病例状态")
        private Byte caseStatus;
        @ApiModelProperty("上报状态（0未上报  1已上报）")
        private Byte reportStatus;
        @ApiModelProperty("核实状态")
        private Byte checkStatus;
        @ApiModelProperty("出院时间")
        private Date leaveTime;
        @ApiModelProperty("手术操作标化名称")
        private String operationName;
        @ApiModelProperty("建档单位")
        private String createCompany;
        @ApiModelProperty("数据来源")
        private Byte source;
        @ApiModelProperty("创建者")
        private String createBy;
        @ApiModelProperty(" 创建时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;
        @ApiModelProperty("更新者")
        private String updateBy;
        @ApiModelProperty(" 修改时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date updateTime;
        @ApiModelProperty("子表数据")
        private List<AbnormalDataRecordVo> recordVoList;
    }

    @Data
    @ApiModel("TAbnormalDataVo - AbnormalDataRecordVo")
    public static class AbnormalDataRecordVo {
        @ApiModelProperty("key")
        private String code;
        @ApiModelProperty("value")
        private String answer;
        @ApiModelProperty("常规选项")
        private String options;
        @ApiModelProperty("要执行的操作")
        private String operatorName;
        @ApiModelProperty("显示条件")
        private String showType;
        @ApiModelProperty("是否异常 0：否； 1：是")
        private Byte isAbnormal;
    }
}